//
//  MeatMarketApi.h
//  PigMarket
//
//  Created by tunji on 2019/6/13.
//  Copyright © 2019 felix.pigmarket.oc. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "URLPigMarketDefine.h"
#import "BuyMeatModel.h"
#import "SameCityModel.h"
#import "PigTypeListModel.h"
#import "MeatCartModel.h"
#import "ShopSeparatePlanModel.h"
#import "MeatPriceRangeModel.h"
#import "MeatPayOrderModel.h"
#import "MeatShopSortModel.h"
#import "MeatShopNearByModel.h"
#import "MeatPriceModel.h"


#import "MeatShopComplaintsParam.h"
#import "MeatOrderCheckParam.h"
#import "MeatOrderSumbitParam.h"
#import "MeatShopMessageParam.h"
#import "MeatShopSortingParam.h"
#import "MeatShopListParam.h"
#import "MessageParam.h"
#import "MeatShopNearByParam.h"




NS_ASSUME_NONNULL_BEGIN

@interface MeatMarketApi : NSObject

#pragma mark - 肉市-买肉-广告
- (RACSignal<BuyMeatadvertiseListModel *> *)getBuyMeatAdvertiseListData;

#pragma mark - 肉市-买肉-部位列表
- (RACSignal<BuyMeatPartListModel *> *)getBuyMeatPartListDataWithType:(NSNumber *)type;

#pragma mark - 肉市-买肉-店铺列表
- (RACSignal<BuyMeatListModel *> *)getShoppingListByParams:(MeatShopListParam *)params;

#pragma mark - 肉市-同城商铺
- (RACSignal<SameCityListModel *> *)getSameCityListDataWithMemberId:(NSNumber *)memberId Page:(NSNumber *)page Limit:(NSNumber *)limit Lon:(NSString *)lon Lat:(NSString *)lat;


#pragma mark -   —————————  店铺 —————————


#pragma mark - 肉市-获取店铺信息
- (RACSignal<BuyMeatShopDetailModel *> *)getBuyMeatShoppDetailByShopId:(NSNumber *)shopId;

#pragma mark - 售卖中的猪-转让中的猪
- (RACSignal<PigTypeListModel *> *)getBuyMeatPigTypeListByShopId:(NSNumber *)shopId;

#pragma mark - 收藏/取消收藏 店铺
- (RACSignal <NSNull *> *)getBuyMeatShopCollectionByShopId:(NSNumber *)shopId isCollection:(NSNumber *)isCollection;

#pragma mark - 点赞/取消点赞店铺
- (RACSignal <NSNull *> *)getBuyMeatShopLikeByShopId:(NSNumber *)shopId isLike:(NSNumber *)isLike;

#pragma mark - 店铺中的购物车
- (RACSignal<PigTypeModel *> *)getBuyMeatCartListByShopId:(NSNumber *)shopId;

#pragma mark - 我的购物车
- (RACSignal<MeatCartModel *> *)getMyMeatCartListByPage:(NSNumber *)page;

#pragma mark - 加入购物车
- (RACSignal <NSNull *> *)getMeatAddCartByShopId:(NSNumber *)shopId advanceSaleId:(NSNumber *)advanceSaleId;

#pragma mark - 删除购物车
- (RACSignal<NSNull *> *)getMyMeatDeleteCartByIds:(NSArray *)Ids;

#pragma mark - 历史评论(查看店铺评论)
- (RACSignal<PigTypeModel *> *)getMeatShopCommentsTypeByShopId:(NSNumber *)shopId page:(NSNumber *)page;

#pragma mark - 上报内容
- (RACSignal<PigTypeModel *> *)getMeatShopComplaintsByParams:(MeatShopComplaintsParam *)params;

#pragma mark - 评论页面显示小猪编号
- (RACSignal <NSNull *> *)getMeatPigNumberByShopId:(NSNumber *)shopId;

#pragma mark - 获取价格区间列表
- (RACSignal<MeatPriceRangeModel *> *)getMeatShopPriceList;

#pragma mark - 打烊店铺留言
- (RACSignal<NSNull *> *)getMeatShopMessageByParams:(MessageParam *)parmas;

#pragma mark - 物价局
- (RACSignal<MeatPriceModel *> *)getMeatPriceReferenceByTribeId:(NSNumber *)tribeId page:(NSNumber *)page;

#pragma mark - 物价局搜索
- (RACSignal<PigTypeModel *> *)getMeatPriceSearchByTribeStr:(NSString *)tribeStr;

#pragma mark - 筛选页查部落店铺列表 排序
- (RACSignal<MeatShopSortModel *> *)getMeatShopSortingByParams:(MeatShopSortingParam *)parmas;

#pragma mark - 同城掌柜
- (RACSignal<MeatShopNearByModel *> *)getMeatShopNearByListByParam:(MeatShopNearByParam *)params;

#pragma mark - 获取我的店铺列表 同城掌柜的
- (RACSignal<PigTypeModel *> *)getMeatShopCityListByMemberId:(NSString *)memberId;

#pragma mark - 获取部落范围
- (RACSignal<PigTypeModel *> *)getMeatShopTriberRange;


#pragma mark -   —————————  支付 —————————


#pragma mark - 从分割预售中的猪进入
- (RACSignal<MeatPayOrderModel *> *)getMeatPayTypeByShopId:(NSNumber *)shopId;

#pragma mark - 从整猪预售中的猪进入
- (RACSignal <NSNull *> *)getMeatPayWholeByAdvanceSaleId:(NSNumber *)advanceSaleId;

#pragma mark - 下单支付成功之后调用---此接口
- (RACSignal <NSNull *> *)getMeatPayByOrderId:(NSNumber *)orderId;

#pragma mark - 待支付订单变为支付
- (RACSignal<PigTypeModel *> *)getMeatPayByOrderId:(NSNumber *)orderId payAmount:(NSNumber *)payAmount  payType:(NSString *)payType;

#pragma mark - 支付成功之后查看订单
- (RACSignal <NSNull *> *)getMeatPayOrderDetailByOrderId:(NSNumber *)orderId;

#pragma mark - 下单校验接口
- (RACSignal<MeatPayModel *> *)getMeatPayOrderCheckByParams:(MeatOrderCheckParam *)parmas;

#pragma mark - 提交订单（下单)
- (RACSignal<MeatOrderModel *> *)getMeatPayOrderSumbitByParams:(MeatOrderSumbitParam *)parmas;




@end

NS_ASSUME_NONNULL_END
